package com.yyplatform.admin.platform.schedule.model.entity;

import com.yyplatform.admin.infra.model.entity.BaseEntity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

/**
 * @author sleepforests@163.com
 * <p>
 * Created on 2024/9/21 22:47
 */
@Entity
@Getter
@Setter
@Table(name = "sys_schedule_job_log")
public class JobLogEntity extends BaseEntity {

    @Column(name = "job_id", nullable = false, columnDefinition = " bigint(20) comment '任务ID_FK' ")
    private Long jobId;

    @Column(name = "bean_name", nullable = false, columnDefinition = " varchar(200) comment 'SpringBean名称' ")
    private String beanName;

    @Column(name = "params", columnDefinition = " varchar(2000) comment '启动参数' ")
    private String params;


    @Column(name = "errorCode", nullable = false, columnDefinition = "tinyint comment '错误码' ")
    private Integer errorCode;

    @Column(name = "error_msg", nullable = false, columnDefinition = " text comment '异常信息' ")
    private String errorMsg;


    @Column(name = "remark", columnDefinition = " varchar(200) comment '配置说明' ")
    private String remark;

    @Column(name = "cost", nullable = false, columnDefinition = " int(11) comment '耗时单位ms' ")
    private int cost;

}
